package com.yl.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lfs
 * @since 2021-01-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TShopCouponGet extends Model<TShopCouponGet> {

    private static final long serialVersionUID = 1L;

    @TableId("COUPON_PRING_ID")
    private Long couponPringId;

    @TableField("COUPON_ID")
    private Long couponId;

    @TableField("RECEIVE_TIME")
    private LocalDateTime receiveTime;

    @TableField("BALANCE")
    private BigDecimal balance;

    @TableField("SHOP_ID")
    private Long shopId;

    @TableField("SHOP_ITEM_ID")
    private Long shopItemId;

    @TableField("AVAILABLE")
    private Integer available;

    @TableField("OPEN_ID")
    private String openId;


    @Override
    protected Serializable pkVal() {
        return this.couponPringId;
    }

}
